package com.cloud.mybatis.service.impl;

import com.cloud.mybatis.entity.Persion;
import com.cloud.mybatis.mapper.PersionMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
public class PersionService {
    @Resource
    private PersionMapper persionMapper;

    @Transactional
    public void save() {
        Persion persion = new Persion();
        persion.setName("用户");
        persionMapper.save(persion);
    }
}
